#include "infr.h"
const int inpinNumber=4;
int infr(bool &v){
 pinMode(inpinNumber,INPUT);
 sleep(0.3);
 if(digitalRead(inpinNumber)==0)
 	v=0;
 else if(digitalRead(inpinNumber)==1)
 	v=1;
 return 0;
}
